.image-view {
  display: flex;
  background: #1f1f1f;
  width: 100%;
  height: 100%;

  .main {
    display: flex;
    height: 100%;
    flex: auto;
    flex-direction: column;
  }

  .content {
    display: flex;
    flex: auto;
    align-items: center;
    justify-content: center;
  }

  text {
    color: #fff;
  }

  .button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: none;
    background: transparent;
    flex: 0 0 auto;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    &:active {
      background: rgba(255, 255, 255, 0.05);
    }
  }

  .button:disabled,
  .button:hover:disabled,
  .button:active:disabled,
  .button:focus:hover:disabled,
  .button:focus:active:disabled,
  .button:focus:hover:active:disabled {
    background: transparent;
    opacity: 0.5;
  }

  .divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
  }

  .switch-button {
    top: 0;
    bottom: 56px;
    width: 100px;
    padding: 10px;
    position: absolute;
    display: flex;
    align-items: center;
    opacity: 0;
    
    &:hover {
      opacity: 1;
    }

    * {
      width: 20px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      border-radius: 4px;
      color: #fff;
      background: rgb(51, 51, 51);
    }

    &.next {
      right: 0;
      justify-content: flex-end;
    }

    &.prev {
      left: 0;
      justify-content: flex-start;
    }
  }
}

.progress {
  height: 2px;

  .bar {
    height: 100%;
    background: #3b82f6;
  }
}

.tip {
  opacity: 0.8;
  display: flex;
  flex-direction: column;

  * {
    color: #fff;
    text-align: center;
  }

  .icon {
    line-height: 1;
  }
}

.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  background: rgb(51, 51, 51);

  * {
    flex: 0 0 none;
  }

  .icon {
    font-size: 20px;
    line-height: 20px;
  }

  .button {
    color: #fff;
  }

  text {
    white-space: nowrap;
  }

  .button,
  .icon {
    text-align: center;
  }

  .file-info {
    flex: none;
    display: flex;
    margin-right: auto;
    align-items: center;
    padding-left: 12px;
    opacity: 0.5;
    border-left: 1px solid #fff;
  }
}

.maximized {
  .toolbar {
    display: none;
  }
}
